<!-- wx.jssdk BEGIN -->
<script src="https://res.wx.qq.com/open/js/jweixin-1.4.0.js"></script>

<script>
    wx.config
    ({
        debug: {dev},
        appId: '{app_id}',
        timestamp: '{timestamp}',
        nonceStr: '{noncestr}',
        signature: '{signature}',
        jsApiList: [
            'checkJsApi',
            'onMenuShareTimeline',
            'onMenuShareAppMessage',
            'onMenuShareQQ',
            'onMenuShareWeibo',
            'hideMenuItems',
            'showMenuItems',
            'hideAllNonBaseMenuItem',
            'showAllNonBaseMenuItem',
            'translateVoice',
            'startRecord',
            'stopRecord',
            'onRecordEnd',
            'playVoice',
            'pauseVoice',
            'stopVoice',
            'uploadVoice',
            'downloadVoice',
            'chooseImage',
            'previewImage',
            'uploadImage',
            'downloadImage',
            'getNetworkType',
            'openLocation',
            'getLocation',
            'hideOptionMenu',
            'showOptionMenu',
            'closeWindow',
            'scanQRCode',
            'chooseWXPay',
            'getLatestAddress',
            'editAddress',
            'openProductSpecificView',
            'addCard',
            'chooseCard',
            'openCard'
        ]
    });

    wx.ready(function ()
    {
        wx.hideOptionMenu();
    });

    wx.error(function (res)
    {
        console.log(res);
    });
</script>
<!-- wx.jssdk END -->